package com.inifitness.tenant.core.system.converter;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.inifitness.tenant.core.system.model.entity.SysDict;
import com.inifitness.tenant.core.system.model.form.DictForm;
import com.inifitness.tenant.core.system.model.vo.DictPageVO;

import org.mapstruct.Mapper;

/**
 * 字典类型对象转换器
 *
 * @author sunjinfeng
 * @since 2024/04/18 11:00:00
 */
@Mapper(componentModel = "spring")
public interface DictConverter {

  Page<DictPageVO> entity2Page(Page<SysDict> page);

  DictForm entity2Form(SysDict entity);

  SysDict form2Entity(DictForm entity);
}
